package io.github.talelin.latticy.service.impl;

import io.github.talelin.latticy.mapper.CourseMapper;
import io.github.talelin.latticy.model.CourseDo;
import io.github.talelin.latticy.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 课程信息 服务实现类
 * </p>
 *
 * @author 可
 * @since 2021-07-14
 */
@Service
public class CourseServiceImpl  implements CourseService {
    @Autowired
    private CourseMapper courseMapper;

    @Override
    public List<CourseDo> getCourses() {
        List<CourseDo> courses = courseMapper.selectList(null);
        return courses;
    }
}
